home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 101-125 / disk_107 / svtools / fragit / readme < prev   
Text File  |  1992-05-06  |  2KB  |  52 lines

  1. Fragit
  2.  
  3.     or how to fragment CHIP ram, or possible explaination for
  4.     mysterious out of memory errors.
  5.  
  6. Introduction:
  7.  
  8.     A few days ago I found one of my programs was fragmenting CHIP
  9.     memory, while apparantly not loosing any memory.  After having
  10.     read many USENET messages claiming that this would be very
  11.     difficult if not impossible to do (or else very unusual) I was
  12.     very mystified.  So I decided to investigate...
  13.  
  14. How to do it:
  15.  
  16.     Do this from the CLI, but it should happen from the Workbench too.
  17.  
  18.        1 - Make two CLI windows, make one the full size of the display
  19.            and the other at least half the height of the display.
  20.  
  21.        2 - Run either Avail or my memlist program to see what the size
  22.            of the largest CHIP memory blocks are.
  23.  
  24.        3 - Now run fragit, the following will happen:
  25.            - a small, empty, window will appear in the middle of the
  26.              display, for memory to fragment this window MUST overlap
  27.              the other two windows in such a way that at some point
  28.              they stack THREE deep.
  29.            - a CUSTOMSCREEN, hires, interlaced, 16 colours (lots of memory)
  30.              will open up.
  31.            - the small window on the workbench will now be deleted.
  32.            - the CUSTOMSCREEN will now close down.
  33.            - memory should now be fragmented.
  34.  
  35.        4 - Now run the memlist program to see what happened, DO NOT move
  36.            or resize any windows before doing this.  You should see that
  37.            the biggest block of CHIP ram got split into two smaller
  38.            blocks.  This is a problem because if the user ran another
  39.            memory intensive program right away he could get OUT OF MEMORY
  40.            type errors.
  41.  
  42.        5 - Now either move or resize the smaller window slightly and rerun
  43.            the memlist program, you should see the two largest CHIP ram
  44.            blocks change sizes.  You will now have virtually the same
  45.            memory distribution as you had before doing all this.  Also
  46.            note that at no time was memory lost.
  47.  
  48. What to do?
  49.  
  50.     Good question...
  51.  
  52.